package it.orma.iridehr.service;

import it.orma.iridehr.entities.SchedaCandidato;
import it.orma.iridehr.repository.RicercaRepository;
import it.orma.iridehr.services.helper.DocumentoAlfresco;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.webflow.action.AbstractAction;
import org.springframework.webflow.execution.Event;
import org.springframework.webflow.execution.RequestContext;

public class CVService extends AbstractAction{

	@Autowired 
	RicercaRepository ricercaRepository;

	 @Override
	    public Event doExecute(RequestContext context) {
	
			SchedaCandidato obj = (SchedaCandidato)context.getFlowScope().get("schedaCandidato");
		    HttpServletRequest req = (HttpServletRequest) context.getExternalContext().getNativeRequest();
		    req.getSession().setAttribute("resultScheda", obj);		
		
		return success();
	}

		
	
}
